package com.qinghong;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;

public class SysConfigParser {
    public static void main(String[] args) throws DocumentException {
        SAXReader saxReader = new SAXReader();
        Document document = saxReader.read("students.xml");
        Element element = (Element) document.selectSingleNode("/students/student/name");
        String stringValue = element.getStringValue();
        System.out.println(stringValue);
    }
}
